const express = require("express")
const router = express.Router()
const ArticleHandle = require('./handle')
const expressJoi = require("@escook/express-joi")
const likeHandle = require('./handle')
const multipart = require('connect-multiparty')
const multipartMiddleware = multipart()

router.get('/article', ArticleHandle.gerArticle)
router.post('/article', multipartMiddleware, ArticleHandle.addArticle)
router.get('/getlike', multipartMiddleware, likeHandle.getLikeNum)

module.exports = router